package com.itheima.service;

import com.itheima.annotion.MyAnnotion;
import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;
import org.aspectj.lang.annotation.Around;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.time.LocalDate;
import java.util.List;

/**
 * @Author: 放学后海堤日记
 * @Date: 2023/4/7 23:47
 * @Desc:
 */
public interface EmpService {
    //登录
    boolean login(String name, String password);

    //添加员工
    boolean addEmp(Emp emp);

    //批量删除员工信息
    void deleteEmp(List<Integer> ids);

    //修改员工信息
    boolean updateEmp(Emp emp);

    //查询员工信息
    PageBean empList(String name, Integer gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);

    //根据id查询员工信息
    List<Emp> findEmpById(Integer id);

    //根据用户名查询
    List<Emp> findEmpByUsername(String username);

    //文件上传
    String fileUpload(MultipartFile image) throws Exception;
}
